package com.chendx.store.goods.controller;

import com.chendx.model.common.dtos.ResponseResult;
import com.chendx.model.goods.dto.AlbumDto;
import com.chendx.store.goods.service.TbAlbumService;
import com.chendx.store.api.goods.TbAlbumControllerApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by chendx on 2022/4/15.
 */
@RestController
@RequestMapping("/api/goods/album")
public class TbAlbumControlle implements TbAlbumControllerApi {

    @Autowired
    private TbAlbumService tbAlbumService;

    @PostMapping("/list")
    @Override
    public ResponseResult findPage(@RequestBody AlbumDto dto) {
        return tbAlbumService.findPage(dto);
    }
}
